package com.mt.mtbusinessmanagementsystem.utils.oss;

import com.mt.mtbusinessmanagementsystem.utils.entry.Entry;
import org.springframework.web.multipart.MultipartFile;

import java.util.ArrayList;


public class OSSUtil {
    private OSSUtil(){}
    private static OSSHelperUtil ossHelperUtil = OSSHelperUtil.getOssHelperUtil();
    public static Entry<String,String> uploadFled(MultipartFile file, String directory){
        Entry<String,String> entry=ossHelperUtil.uploadFled(file,directory);
        return entry;
    }
    public static ArrayList<Entry<String,String>> uploadFledList(MultipartFile[] fileList,String directory){
        ArrayList<Entry<String,String>> list=ossHelperUtil.multipleFilesUpLoad(fileList, directory);
        return list;
    }







}